package com.rightsidetech.mall.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.mall.dto.request.*;
import com.rightsidetech.mall.dto.request.storeApp.StoreIntegralReq;
import com.rightsidetech.mall.dto.response.IntegralDetailResp;
import com.rightsidetech.mall.dto.response.IntegralPageResp;
import com.rightsidetech.mall.dto.response.storeApp.StoreIntegralResp;
import com.rightsidetech.mall.entity.MallIntegralCommodity;

import java.util.List;

public interface MallIntegralCommodityService {

    ResponseData saveIntegral(IntegralSaveReq req,String createrName,Long createrId);

    ResponseData updateIntegral(IntegralUpReq req,String updaterName,Long updaterId);

    ResponseData<PageInfo<IntegralPageResp>> page(IntegralPageReq req);

    ResponseData arraignment(DelReq req);

    ResponseData verify(VerifyCommodityReq req,String createrName,Long createrId);

    ResponseData grounding(CommodityIsGroundingReq req);

    ResponseData sort(CommoditySortReq req);

    ResponseData<PageInfo<StoreIntegralResp>> storePage(StoreIntegralReq req);

    ResponseData<IntegralDetailResp> detail(Long id);

    ResponseData popular(CommodityPopularReq req);

    MallIntegralCommodity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallIntegralCommodity record);

    ResponseData<List<IntegralPageResp>> selectList(IntegralPageReq req);
}
